package com.juyu.miliao.scheduler.dao.mysql;

import com.juyu.miliao.scheduler.domin.QuestionAndAnswerInfo;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;


/**
 * @author xuanqicheng
 * @create 2018-17-1:51 PM
 */
@Repository
public class QuestionAndAnswerInfoDao {

    @Autowired
    private SqlSession sqlSession;



    public QuestionAndAnswerInfo selectInfoExpireById(long id) {

        return sqlSession.selectOne("selectInfoExpireById",id);
    }

    public void updateQuestionAndAnswerExpire(QuestionAndAnswerInfo obj) {
         sqlSession.update("updateQuestionAndAnswerExpire",obj);
    }
}
